<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Index extends Default_Controller{
	
	public function __construct(){
		parent::__construct();
		$this->_layout = "templates/default/layout";
	}
	public function Index(){
		$this->headTitle("Truyền hình cáp Đồng Tháp");
		
		
		$this->load->model("Posts_Model");
		$thongbaomoi = $this->Posts_Model->getPostTop(1,6);
		$this->loadSidebar("thongbaomoi",$thongbaomoi);
		
		$tintucmoi = $this->Posts_Model->getPostTop(1,3);
		$this->loadSidebar("tintucmoi",$tintucmoi);
		$this->loadSidebar("fanpage");
		
		$this->loaddata("news_hot",$this->Posts_Model->getPostTop(1,6));
		$this->loaddata("news_hot_1",$this->Posts_Model->getPostTop(1,6));
		//var_dump($this->Posts_Model->getPostTop(1,6)); die;
		$this->loadView('default/index');
	}
}